unit uDmCliente;

interface

uses
  SysUtils, Classes, DB, DBClient;

type
  TDmCliente = class(TDataModule)
    cdsTeste: TClientDataSet;
    procedure DataModuleCreate(Sender: TObject);
    procedure DataModuleDestroy(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  DmCliente: TDmCliente;

implementation

{%CLASSGROUP 'System.Classes.TPersistent'}

{$R *.dfm}

procedure TDmCliente.DataModuleCreate(Sender: TObject);
begin
cdsTeste.Open;
end;

procedure TDmCliente.DataModuleDestroy(Sender: TObject);
begin
cdsTeste.Close;
end;

end.
